import { http } from 'jindai-api'

const url = 'admin/setting'

export const view = (type) => http.get(`${url}/${type}`)

export const updateBasis = (params) => http.put(`${url}/basis`, params)

export const updateModule = (params) => http.put(`${url}/module`, params)

export const updatePersonal = (params) => http.put(`${url}/personal`, params)

export const updateAbout = (params) => http.put(`${url}/about`, params)
